package com.cn.spjdbc.po;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class TokenMapper implements RowMapper<VUserToken>{

	@Override
	public VUserToken mapRow(ResultSet rs, int rowNum) throws SQLException {
		VUserToken token = new VUserToken();
		token.setPukey(rs.getInt("pukey"));
		System.out.println(rs.getObject("uid").getClass());
		token.setUid(Integer.parseInt(rs.getString("uid")));
		return token;
	}
	
}
